package com.zhu.service.impl;

import com.zhu.DAO.StreetDao;
import com.zhu.bean.Street;
import com.zhu.service.StreetService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service("streetService")
public class StreetServiceImpl implements StreetService {
    @Autowired
    private StreetDao streetDao;
    @Override
    public List<Street> getAllStreet(int districtId) {
        List<Street> streetList = streetDao.getStreet(districtId);
        return streetList;
    }

    @Override
    public List<Street> getAll() {
        List<Street> streets = streetDao.getAll();
        return streets;
    }
}
